<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>主页 | 短信平台</title>
<jsp:include page="/WEB-INF/jsp/common/commonlist.jsp"></jsp:include>
<script type="text/javascript">
	function bodyLoad(){
		activeMenuItem("channelManage","channelList");
	}
</script>
</head>
<body onload="bodyLoad()">
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">短信平台</a></h1> 
      <!-- Logo (221px wide) -->
     
      <!-- Sidebar Profile links -->
	
	 <!--  页面左上角的部分 -->
     <%@include file="/WEB-INF/jsp/common/leftTop.jsp" %>
     <!-- 页面左侧菜单部分 -->
     <%@include file="/WEB-INF/jsp/common/menu.jsp" %>
      
      <!-- End #messages -->
      <div id="messages" style="display: none">
        <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
        <h3>3 Messages</h3>
        <p> <strong>17th May 2009</strong> by Admin<br />
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. <small><a href="#" class="remove-link" title="Remove message">Remove</a></small> </p>
        <p> <strong>2nd May 2009</strong> by Jane Doe<br />
          Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est. <small><a href="#" class="remove-link" title="Remove message">Remove</a></small> </p>
        <p> <strong>25th April 2009</strong> by Admin<br /> 
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. <small><a href="#" class="remove-link" title="Remove message">Remove</a></small> </p>
      </div>
      <!-- End #messages -->
    </div>
  </div>
  <!-- End #sidebar -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <noscript>
    <!-- Show a notification if the user has disabled javascript -->
    <div class="notification error png_bg">
      <div> Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
        Download From <a href="http://www.exet.tk">exet.tk</a></div>
    </div>
    </noscript>
    <!-- Page Head -->
   <%@ include file="/WEB-INF/jsp/common/top.jsp" %>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>通道列表</h3>
        <ul class="content-box-tabs">
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        <form action="showAllList.do" method="post">
           <table>
              <tr style="background-color: rgb(229, 229, 229);">
                <td style="width: 40px;"><label style="padding-bottom: 0px;">标识：</label></td>
                <td style="width: 160px;"><input type="text" id="tdId" name="tdId" /></td>
                <td><input type="submit" value="查询"></td></tr> 
          </table>
          <table>
            <thead>
              <tr>
                <th>
                  <input class="check-all" type="checkbox" />
                </th>
                <th>ID</th>
                <th>通道名称</th>
                <th>通道属性</th>
                <th>发送方式</th>
                <th>创建时间</th>
                <th>通道状态</th>
                <th>基础操作</th>
              </tr>
            </thead>
            <tfoot> 
              <tr>
                <td colspan="8">
                  <div class="bulk-actions align-left">
                    <a class="button" href="showAllList.do">显示全部</a> </div>
                  <div class="pagination" style="font-size: 12px;"> 
                    <a href="showAllList.do?pageNo=1" title="首页">&laquo; 首页</a>
	                <a href="showAllList.do?pageNo=${result.previousPage }" title="Previous Page">&laquo; 上一页</a> 
	                <a href="showAllList.do?pageNo=${result.nextPage}" title="下一页">下一页 &raquo;</a>
	                <a href="showAllList.do?pageNo=${result.pageCount}" title="Last Page">尾页 &raquo;</a>
	              </div>
                  <!-- End .pagination -->
                  <div class="clear"></div>
                </td>
              </tr>
            </tfoot>
            <tbody>
            <c:forEach items="${result.result}" var="list">
              <tr>
                <td>
                  <input type="checkbox" />
                </td>
                <td>${list.tdId}</td>
                <td><a href="#" title="title">${list.tdmc}</a></td>
                <td>${list.tdlb}/${list.tdsx}</td>
                <td>${list.tjfs}</td>
                <td>${fn:substring(list.pubtime,0,4)}-${fn:substring(list.pubtime, 4, 6)}-${fn:substring(list.pubtime, 6, 8)}</td> 
                <c:if test="${list.tdzt==1}">
                	<td>启动</td>
                </c:if>
                <c:if test="${list.tdzt==0}">
                	<td>停止</td>
                </c:if>
                <td>
                  <!-- Icons -->
                  <a href="editChannel.do?tdId=${list.tdId}" title="编辑"><img src="images/icons/pencil.png" alt="编辑" /></a> 
                  <a href="delChannel.do?tdId=${list.tdId}" title="删除"><img src="images/icons/cross.png" alt="删除" /></a>
                  <a href="flagChannel.do?tdId=${list.tdId}&tdzt=${list.tdzt}" title="修改状态"><img src="images/icons/hammer_screwdriver.png" alt="修改状态" /></a></td>
              </tr>
            </c:forEach>
            </tbody>
          </table>
         </form>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
    <div class="clear"></div>
    <%@ include file="/WEB-INF/jsp/common/copyright.jsp" %>
  </div>
  <!-- End #main-content -->
</div>
</body>
</html>